package com.lifeng.finance.demo.entity;

import com.lifeng.finance.demo.utils.Time;

import static com.lifeng.finance.demo.utils.Time.getCurrentTime;

public class Customer{
    int id;
    String name;
    String createTime;
    String updateTime;

//    public Customer() {}

    public Customer(String name) {
        this.name = name;
        createTime = getCurrentTime();
        updateTime = getCurrentTime();
    }

    public Customer(int id, String name, String createTime, String updateTime) {

        this.id = id;
        this.name = name;
        this.createTime = createTime;
        this.updateTime = updateTime;


    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        updateTime = getCurrentTime();
    }

    public String getCreateTime() {
        return createTime;
    }


    public String getUpdateTime() {
        return updateTime;
    }


}
